/**
 * 
 */
package com.hfjyz.registration.service;

import java.util.List;
import java.util.Map;

import org.springframework.validation.Errors;

import com.hfjyz.registration.command.ExamResultCountListCommand;
import com.hfjyz.registration.dao.ExamDao;
import com.hfjyz.registration.object.ExamResultInfoBean;

/**
 *
 */
public class ExamResultCountServiceImpl extends AbstractServiceImpl implements
		ExamResultCountService {
	private ExamDao examDao;

	@Override
	@SuppressWarnings("rawtypes")
	public Map initExamResultCountInfo(ExamResultCountListCommand cmd, Errors errors)
			throws Exception {
		List<ExamResultInfoBean> exams = examDao.initExamResult(cmd);
		cmd.setResult(exams);
		return null;
	}

	/**
	 * @return the examDao
	 */
	public ExamDao getExamDao() {
		return examDao;
	}

	/**
	 * @param examDao
	 *            the examDao to set
	 */
	public void setExamDao(ExamDao examDao) {
		this.examDao = examDao;
	}

}
